

export const getTagList  = () => {

	return (dispatch, getState, axios) => {
		return axios.get('/front/category').then((res) => {
			dispatch({
				type: 'change_tag_list',
				value: res.data.data.list
			})
		}) 
	}
}


export const getArticleList  = (tag) => {

	return (dispatch, getState, axios) => {
		return axios.get('/front/category/article', {params: {articleTag: tag}}).then((res) => {
			dispatch({
				type: 'change_article_list',
				value: res.data.data
			})
		}) 
	}
}
